Skip to content

Conversation

@lukaszgyg
Copy link

Summary

This PR migrates the repository to use .sdkmanrc as the single source of truth for Java version in CI workflows, following the migration guide.

Changes

  • Created .sdkmanrc file with java=21.0.5-tem
  • Updated actions/setup-java to v5.1.0 in all workflow files:
    • .github/workflows/check.yml
    • .github/workflows/publish.yml
    • .github/workflows/repository-maintenance.yml
  • Changed java-version: 21 parameter to java-version-file: .sdkmanrc in all workflows

Benefits

  • Single source of truth for Java version across CI and local development
  • Developers using SDKMAN! will automatically use the same Java version as CI
  • Easier to maintain and update Java version in the future

Testing

  • CI workflows will validate the changes automatically
  • The .sdkmanrc file specifies Java 21.0.5 (Temurin distribution), matching the previous configuration

References

Follows: agent-migrations/2026-01-sdkmanrc-ci-java-version-technical-guide.md

- Created .sdkmanrc file
- Updated setup-java action to v5.1.0
- Changed java-version parameter to java-version-file: .sdkmanrc

Follows: agent-migrations/2026-01-sdkmanrc-ci-java-version-technical-guide.md

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
@lukaszgyg lukaszgyg requested a review from a team as a code owner January 24, 2026 10:39
@lukaszgyg
Copy link
Author

lukaszgyg commented Jan 30, 2026

👋 Hi! This is a friendly automated reminder about this PR.

What this PR does:
This PR migrates the CI workflow to use .sdkmanrc as the single source of truth for the Java version, instead of hardcoding it in GitHub Actions workflows.

Why this is safe:

  • ✅ All CI checks are passing
  • ✅ No code changes, only workflow configuration
  • ✅ The Java version stays the same, just read from a different source
  • ✅ Improves consistency between local dev and CI environments

What's needed:
Just a quick review and approval when you have a moment! 🙏

More info:


This is an automated message for openapi-validation-java #315. If you have questions, feel free to comment!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants